<ui:component xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:a4j="http://richfaces.org/a4j"
	xmlns:rich="http://richfaces.org/rich"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets">

	<rich:tabPanel switchType="client">
		<rich:tab label="#{messages['viewtransaction.presentation']}">
			<div class="content">
				<div align="center">
					<ui:include src="/permits/includes/viewPresentationPartIncl.xhtml">
						<ui:param name="receptionistUserName" value="#{operationPermitHelper.permit.receptionistUserName}" />
						<ui:param name="receptionistFullName" value="#{operationPermitHelper.permit.receptionistFullName}" />
						<ui:param name="validityFrom" value="#{operationPermitHelper.permit.validityFrom}" />
						<ui:param name="validityTo" value="#{operationPermitHelper.permit.validityTo}" />
						<ui:param name="partyNationalIdentity" value="#{operationPermitHelper.partyNationalIdentity}" />
						<ui:param name="partyName" value="#{operationPermitHelper.partyName}" />
						<ui:param name="requestText" value="#{operationPermitHelper.permit.requestText}" />
						<ui:param name="showAttachedFilesXhtmlPath" value="/permits/operation/includes/showAttachedFiles.xhtml" />
					</ui:include>
				</div>
			</div>
		</rich:tab>
		
		<rich:tab label="#{messages['viewtransaction.analysis']}">
			<div class="content">
				<div align="center">
					<ui:include src="/permits/includes/viewAnalysisPartIncl.xhtml">
						<ui:param name="analystUserName" value="#{operationPermitHelper.permit.analystUserName}" />
						<ui:param name="analystFullName" value="#{operationPermitHelper.permit.analystFullName}" />
						<ui:param name="permitType" value="#{messages[operationPermitHelper.permit.type.name()]}" />
						<ui:param name="spatialZone" value="#{operationPermitHelper.permit.spatialZone}" />
						<ui:param name="permitObservations" value="#{operationPermitHelper.permitObservations}" />
						<ui:param name="analystOpinion" value="#{operationPermitHelper.permit.analystOpinion}" />
					</ui:include>
				</div>
			</div>
		</rich:tab>
		
		<rich:tab label="#{messages['permit.approval_data']}">
			<div class="content">
				<div align="center">
					<ui:include src="/permits/includes/viewApprovalPartIncl.xhtml">
						<ui:param name="issueDate" value="#{operationPermitHelper.permit.issueDate}" />
						<ui:param name="approved" value="#{operationPermitHelper.permit.isApproved()}" />
						<ui:param name="approverOpinion" value="#{operationPermitHelper.permit.approverOpinion}" />
					</ui:include>
				</div>
			</div>
		</rich:tab>
	</rich:tabPanel>

</ui:component>
